package cn.xinfei.xdecision.common.dao.component.decisiontable;

import cn.xinfei.xdecision.common.model.component.ComponentVo;
import cn.xinfei.xdecision.common.model.component.decisiontable.DecisionTablesDetailCondition;
import cn.xinfei.xdecision.common.model.component.dependency.resp.DecisionComponentDependencyResp;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * (DecisionTablesDetailCondition)表数据库访问层
 */
@Mapper
public interface DecisionTablesDetailConditionMapper extends BaseMapper<DecisionTablesDetailCondition> {
    /**
     * 通过变量code集合查询组件code
     *
     * @param values 变量code集合
     */
    List<DecisionComponentDependencyResp> getComponentCodeByVarCodes(List<String> values);

    /**
     * 通过组件code集合查询变量code
     *
     * @param componentCodes 组件code集合
     */
    List<String> getFieldCodesByComponentCodes(List<ComponentVo> componentCodes);

}

